package com.swagger.demo.admin.custom.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author: lbq
 * @email: 526509994@qq.com
 * @date: 2022/6/7
 */
@ApiModel(description = "后台返回数据kv")
public class DemoResult {

    @ApiModelProperty(value = "0:成功;其它:调用失败", example = "1001")
    private Integer code;

    @ApiModelProperty(value = "调用失败时返回的英文信息", example = "error.admin.nologin")
    private String error;

    @ApiModelProperty(value = "调用失败时返回的中文信息", example = "请先登录")
    private String msg;

    @ApiModelProperty(value = "实际数据")
    private Object data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}